package com.lagou.vo;

import java.util.Random;

public class Student {
    private String name;
    private int age;
    private boolean male;
    private int grade;

    public Student() {
        Random random = new Random(100);
        this.name = "学生"+random.nextInt();
        this.age = 16;
        this.male = true;
        this.grade = 9;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", male=" + male +
                ", grade=" + grade +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public boolean isMale() {
        return male;
    }

    public void setMale(boolean male) {
        this.male = male;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }
}
